<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-06-27 14:37:11
 * @LastEditors: voanit
 * @LastEditTime: 2022-06-27 14:43:46
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 150px;
      height: 150px;
      background-color: pink;
      animation: move 2s linear infinite forwards;
      /* 动画名 动画时间  动延迟时间 动画曲线速度 动画次数  forwards[停留在终点] */
    }

    @keyframes move {
      30% {
        transform: translateX(500px);
      }

      100% {
        transform: translate(500px, 500px);
      }
    }
  </style>
</head>

<body>
  <div></div>
</body>

</html>